import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';
export class CreateMenuDto {
  @ApiProperty({ description: '路由名称' })
  @IsNotEmpty({ message: "请输入路由名称" })
  name: string;

  @ApiProperty({ description: '路由路径' })
  @IsNotEmpty({ message: "请输入路由名称" })
  path: string

  @ApiProperty({ description: '是否是菜单' })
  is_menu: number

  @ApiProperty({ description: '菜单名称' })
  title:string

  @ApiProperty({ description: '一级菜单id' })
  parentId?: number
}
